package com.s4j.struts.biz.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 重症肌无力辨证结果
 * @author Administrator
 *
 */
@Entity
@Table(name="BIZ_MG_SYNDRESULT")
public class BizMgSyndresult {

	private Long syndresId;
	
	private PatientDoc patient;
	
	private String symptom;		//患者的主症为
	
	private Integer nature1;	//湿
	
	private Integer nature2;	//血瘀
	
	private Integer nature3;	//气滞
	
	private Integer nature4;	//湿热
	
	private Integer nature5;	//痰
	
	private Integer nature6;	//气虚
	
	private Integer nature7;	//阳虚
	
	private Integer nature8;	//阴虚
	
	private Integer nature9;	//血虚
	
	private String natureOther;	//辨证要素  定性  其他
	
	private Integer orien1;		//肺
	
	private Integer orien2;		//脾
	
	private Integer orien3;		//肝
	
	private Integer orien4;		// 肾
	
	private Integer orien5;		//心
	
	private String orienOther;		//辨证要素  定位  其他
	
	private String selfResult;		//自行辨证结论
	
	private Integer concl;		//治疗结论	1临床近期治愈  2显效 3好转  4无效
	
	private List<MgResultDtl> resultDtl;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getSyndresId() {
		return syndresId;
	}

	public void setSyndresId(Long syndresId) {
		this.syndresId = syndresId;
	}

	@OneToOne  
    @JoinColumn(name="patientId",insertable=true,unique=true)
	public PatientDoc getPatient() {
		return patient;
	}

	public void setPatient(PatientDoc patient) {
		this.patient = patient;
	}

	@Column(length=50)
	public String getSymptom() {
		return symptom;
	}

	public void setSymptom(String symptom) {
		this.symptom = symptom;
	}

	@Column(precision=2)
	public Integer getNature1() {
		return nature1;
	}

	public void setNature1(Integer nature1) {
		this.nature1 = nature1;
	}

	@Column(precision=2)
	public Integer getNature2() {
		return nature2;
	}

	public void setNature2(Integer nature2) {
		this.nature2 = nature2;
	}

	@Column(precision=2)
	public Integer getNature3() {
		return nature3;
	}

	public void setNature3(Integer nature3) {
		this.nature3 = nature3;
	}

	@Column(precision=2)
	public Integer getNature4() {
		return nature4;
	}

	public void setNature4(Integer nature4) {
		this.nature4 = nature4;
	}

	@Column(precision=2)
	public Integer getNature5() {
		return nature5;
	}

	public void setNature5(Integer nature5) {
		this.nature5 = nature5;
	}

	@Column(precision=2)
	public Integer getNature6() {
		return nature6;
	}

	public void setNature6(Integer nature6) {
		this.nature6 = nature6;
	}

	@Column(precision=2)
	public Integer getNature7() {
		return nature7;
	}

	public void setNature7(Integer nature7) {
		this.nature7 = nature7;
	}

	@Column(precision=2)
	public Integer getNature8() {
		return nature8;
	}

	public void setNature8(Integer nature8) {
		this.nature8 = nature8;
	}

	@Column(precision=2)
	public Integer getNature9() {
		return nature9;
	}

	public void setNature9(Integer nature9) {
		this.nature9 = nature9;
	}

	@Column(length=50)
	public String getNatureOther() {
		return natureOther;
	}

	public void setNatureOther(String natureOther) {
		this.natureOther = natureOther;
	}

	@Column(precision=2)
	public Integer getOrien1() {
		return orien1;
	}

	public void setOrien1(Integer orien1) {
		this.orien1 = orien1;
	}

	@Column(precision=2)
	public Integer getOrien2() {
		return orien2;
	}

	public void setOrien2(Integer orien2) {
		this.orien2 = orien2;
	}

	@Column(precision=2)
	public Integer getOrien3() {
		return orien3;
	}

	public void setOrien3(Integer orien3) {
		this.orien3 = orien3;
	}

	@Column(precision=2)
	public Integer getOrien4() {
		return orien4;
	}

	public void setOrien4(Integer orien4) {
		this.orien4 = orien4;
	}

	@Column(precision=2)
	public Integer getOrien5() {
		return orien5;
	}

	public void setOrien5(Integer orien5) {
		this.orien5 = orien5;
	}

	@Column(length=50)
	public String getOrienOther() {
		return orienOther;
	}

	public void setOrienOther(String orienOther) {
		this.orienOther = orienOther;
	}

	@Column(length=50)
	public String getSelfResult() {
		return selfResult;
	}

	public void setSelfResult(String selfResult) {
		this.selfResult = selfResult;
	}

	@Column(precision=2)
	public Integer getConcl() {
		return concl;
	}

	public void setConcl(Integer concl) {
		this.concl = concl;
	}
	
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY,mappedBy="syndresult")
	public List<MgResultDtl> getResultDtl() {
		return resultDtl;
	}

	public void setResultDtl(List<MgResultDtl> resultDtl) {
		this.resultDtl = resultDtl;
	}
}
